const express = require("express");
let app = express();

app.get("/getdata",(req,res)=>{
    console.log("4000端口打印的内容");
    res.json({
        info:"我是4000端口返还的数据",
        status:1
    })
})

app.get("/test",(req,res)=>{
    // res.send("let a=10");

    let obj = {
        name:"张三",
        age:20
    }

    let {cb}  = req.query;
    res.send(`${cb}(${JSON.stringify(obj)})`);
})
app.listen(4000);